<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="common/header.jsp" %>

<div class="clearfix"></div>

<div class="row">

    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>查看并审核APP信息 <i class="fa fa-user"></i>${userSession.userName}</h2>
                <div class="clearfix"></div>
            </div>
            <div class="x_title">
                <h2>APP基础信息</h2>
                <div class="clearfix"></div>
            </div>
            <div class="x_content1">
                <form method="post"  action="/app/putaway1">
                    <c:forEach var="appInfos" items="${sessionScope.appInfo}" varStatus="status">
                        <input type="hidden" name="id" value="${appInfos.id}">

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">软件名称 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12" value="${appInfos.softwareName}"
                                       type="text" readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">APK名称 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12"
                                       value="${appInfos.APKName}" readonly="readonly">
                            </div>
                        </div>

                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">支持ROM <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12"
                                       value="${appInfos.supportROM}" type="text" readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">界面语言 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12" readonly="readonly"
                                       value="${appInfos.interfaceLanguage}" type="text">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">软件大小 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" value="${appInfos.softwareSize}"
                                       class="form-control col-md-7 col-xs-12" readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">下载次数 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" value="${appInfos.downloads}"
                                       class="form-control col-md-7 col-xs-12" readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">所属平台 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12"
                                       value="${appInfos.flatformName}" readonly="readonly"/>
                            </div>
                        </div>

                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">所属分类 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12"
                                       value="${appInfos.categoryLevel1Name} --> ${appInfos.categoryLevel2Name} --> ${appInfos.categoryLevel3Name}"
                                       readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">APP状态 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" class="form-control col-md-7 col-xs-12"
                                       value="${appInfos.statusName}" readonly="readonly">
                            </div>
                        </div>
                        <br/>
                        <br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">应用简介 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea class="form-control col-md-7 col-xs-12"
                                          readonly="readonly">${appInfos.appInfo}</textarea>
                            </div>
                        </div>
                        <br/><br/><br/><br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">LOGO图片 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <c:choose>
                                    <c:when test="${appInfos.logoPicPath == null || appInfos.logoPicPath == ''}">
                                        暂无
                                    </c:when>
                                    <c:otherwise>
                                        <img src="${appInfos.logoPicPath }" width="100px"/>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </div>
                        <br/><br/>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <button id="status1" type="submit" name="status" value="2" class="btn btn-success">
                                    审核通过
                                </button>
                                <button id="status2" type="submit" name="status" value="3" class="btn btn-success">
                                    审核不通过
                                </button>
                                <button type="button" class="btn btn-primary" id="back">返回</button>
                            </div>
                        </div>
                        <br/><br/> <br/><br/>

                    </c:forEach>
                </form>
            </div>
            <div class="clearfix"></div>

            <div class="x_title">
                <h2>最新版本信息</h2>
                <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="x_content" style="display: block">
                <br/>

                <form method="post">
                    <c:forEach var="appVersions" items="${sessionScope.appVersion}" varStatus="status">
                        <input type="hidden" value="${appVersions.versionNo }">


                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">版本号 <span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12" value="${appVersions.versionNo }"
                                       type="text" readonly="readonly">
                            </div>
                        </div>
                        <br/><br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">版本大小 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="number" value="${appVersions.versionSize }"
                                       class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        <br/><br/>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">发布状态 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="hidden" name="publishStatus" id="publishStatus" value="3">预发布
                            </div>
                        </div>
                        <br/><br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">版本简介 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea class="form-control col-md-7 col-xs-12">${appVersions.versionInfo }</textarea>
                            </div>
                        </div>
                        <br/><br/><br/><br/>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">apk文件 <span
                                    class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <c:choose>
                                    <c:when test="${appVersions.downloadLink == null || appVersions.downloadLink == ''}">
                                        暂无
                                    </c:when>
                                    <c:otherwise>
                                        <p>${appVersions.apkFileName}&nbsp;&nbsp;
                                            <a href="${appVersions.downloadLink}">下载</a>
                                        </p>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </div>
                        <br/><br/>
                        <div class="clearfix"></div>
                    </c:forEach>
                </form>
                <div class="clearfix"></div>

            </div>

        </div>
        <br/><br/> <br/><br/> <br/><br/><br/>
    </div>

    <%@include file="common/footer.jsp" %>
    <script src="${pageContext.request.contextPath }/statics/localjs/appcheck.js"></script>